/*
 * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
 * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
 */
package com.yxw.live_vod_boot.dto;

import com.yxw.live_vod_boot.entity.YxLiveShopReportEntity;
import io.swagger.annotations.ApiModel;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
//import lombok.EqualsAndHashCode;



/*** 
*@author Jiaxu.Huang
*@date 2023/12/8 16:31:49
*@update 2023/12/8 16:31:49
**/
@Data
@ApiModel(value="LiveShopReporAddtDTO", description="直播被举报DTO")
public class LiveShopReporAddtDTO implements Serializable
{
    private static final long serialVersionUID = 11702021847L;

    /**
    *店铺Id
    */
    @NotNull(message = "店铺Id不能为空")
    @ApiModelProperty(value = "店铺Id")
    private Long liveShopId;
    /**
    **店铺名称
    */
    @NotBlank(message = "店铺名称不能为空") 
    @ApiModelProperty(value = "")
    private String shopName;
    /**
    *直播Id
    */
    @NotBlank(message = "直播Id不能为空") 
    @ApiModelProperty(value = "直播Id")
    private String liveId;
    /**
    *直播间名称
    */
    @NotBlank(message = "直播间名称不能为空") 
    @ApiModelProperty(value = "直播间名称")
    private String liveHomeName;
    /**
    *店铺处罚条例Id
    */
    @NotNull(message = "店铺处罚条例Id不能为空")
    @ApiModelProperty(value = "店铺处罚条例Id")
    private Long violationId;
    /**
    *违规原因
    */
    @NotBlank(message = "违规原因不能为空") 
    @ApiModelProperty(value = "违规原因")
    private String violationReson;
    /**
    *举报人Id
    */
    @NotBlank(message = "举报人Id不能为空") 
    @ApiModelProperty(value = "举报人Id")
    private String accusationUserId;
    /**
    *报人姓名
    */
    @NotBlank(message = "举报人姓名不能为空") 
    @ApiModelProperty(value = "报人姓名")
    private String accusationUserName;
    /**
    *举报的详情
    */
    @NotBlank(message = "举报的详情不能为空")
    @ApiModelProperty(value = "举报的详情")
    private String accusationContent;
    /**
    *举报的图片
    */
    @ApiModelProperty(value = "举报的图片")
    private String accusationPictureUrl;

    /**
    *举报时间
    */
    @ApiModelProperty(value = "举报时间")
    private java.util.Date createTime;
    /**
    *将DTO转换为ENTITY
    */
    public YxLiveShopReportEntity ConverToEntity()
    {
        YxLiveShopReportEntity oYxLiveShopReportEntity = new YxLiveShopReportEntity ();
        oYxLiveShopReportEntity.setLiveShopId(liveShopId) ;
        oYxLiveShopReportEntity.setShopName(shopName) ;
        oYxLiveShopReportEntity.setLiveId(liveId) ;
        oYxLiveShopReportEntity.setLiveHomeName(liveHomeName) ;
        oYxLiveShopReportEntity.setViolationId(violationId) ;
        oYxLiveShopReportEntity.setViolationReson(violationReson) ;
        oYxLiveShopReportEntity.setAccusationUserId(accusationUserId) ;
        oYxLiveShopReportEntity.setAccusationUserName(accusationUserName) ;
        oYxLiveShopReportEntity.setAccusationContent(accusationContent) ;
        oYxLiveShopReportEntity.setAccusationPictureUrl(accusationPictureUrl) ;
        oYxLiveShopReportEntity.setCreateTime(createTime) ;
        return oYxLiveShopReportEntity;
    }
}